package com.jinpeng.springbootsendmail.service;

/**
 * @ProjectName: springboot-sendmail
 * @Package: com.jinpeng.springbootsendmail.service
 * @ClassName: MailService
 * @Description: java类作用描述
 * @Author: 唐朝
 * @CreateDate: 2019/12/27 15:44
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/12/27 15:44
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface MailService {

    /**
     * 简单的文本邮件
     * @param to
     * @param subject
     * @param content
     */
    void sendSimpleMail(String to, String subject, String content);

    /**
     * html邮件
     * @param to
     * @param subject
     * @param content
     */
    void sendHtmlMail(String to, String subject, String content);

    /**
     * 带附件的邮件
     * @param to
     * @param subject
     * @param content
     * @param filePath
     */
    void sendAttachemntMail(String to, String subject, String content,String filePath);

    /**
     * 嵌入静态资源的邮件
     * @param to
     * @param subject
     * @param content
     * @param rscPath
     * @param rscId
     */
    void sendInlineResourceMail(String to, String subject, String content, String rscPath, String rscId);

    /**
     * 发送模板邮件
     * @param to
     * @param subject
     * @param username
     */
    void sendTemplateMail(String to, String subject, String username);
}
